<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Order_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-order_id" data-rule="required" data-source="order/index" class="form-control selectpage" name="row[order_id]" type="text" value="{$row.order_id|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">

            {foreach name="typeList" item="vo"}
            <label for="row[type]-{$key}"><input  disabled="disabled" id="row[type]-{$key}" name="row[type]" type="radio" value="{$key}" {in name="key" value="$row.type"}checked{/in} /> {$vo}</label>
            {/foreach}

<!--            <input id="c-type" class="form-control" name="row[type]" type="number" value="{$row.type|htmlentities}">-->
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Invoice_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-invoice_type" class="form-control" disabled="disabled" name="row[invoice_type]" type="text" value="{$row.invoice_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Invoice_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-invoice_title" class="form-control" disabled="disabled" name="row[invoice_title]" type="text" value="{$row.invoice_title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Invoice_txa')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-invoice_txa" class="form-control" disabled="disabled" name="row[invoice_txa]" type="text" value="{$row.invoice_txa|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Bank')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bank" class="form-control" disabled="disabled" name="row[bank]" type="text" value="{$row.bank|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Bank_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bank_no" class="form-control" disabled="disabled" name="row[bank_no]" type="text" value="{$row.bank_no|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Enterprise_address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-enterprise_address" class="form-control" disabled="disabled" name="row[enterprise_address]" type="text" value="{$row.enterprise_address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Enterprise_mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-enterprise_mobile" class="form-control" disabled="disabled" name="row[enterprise_mobile]" type="text" value="{$row.enterprise_mobile|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-email" data-rule="required" disabled="disabled" class="form-control" name="row[email]" type="text" value="{$row.email|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Types')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-types" class="form-control" disabled="disabled" name="row[types]" type="number" value="{$row.types|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" disabled="disabled" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8" disabled="disabled">
<!--            <input id="c-status" class="form-control" name="row[status]" type="number" value="{$row.status|htmlentities}">-->

            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input  id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
            {/foreach}

        </div>
    </div>
    <?php if($row['status']==1){?>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
    <?php } ?>
</form>
